package com.wn.entity;

import com.wn.validation_group.NcrAddGroup;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Min;

/**
 * 人力资源表
 * @author dzj
 * date: 2022/10/19
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Hr {
    @Min(value = 1,groups = NcrAddGroup.class,message = "发起人不能为空")
    private int id;
    private String name;                 //姓名
    private String workNumber;           //工号
    private String phoneNumber;          //手机号
    private String gender;               //性别
    private String educationBackground;  //学历
    private String entryTime;            //入职时间
    private String age;                  //年龄
    private String department;           //部门
    private String position;             //职位
    private String state;                //人员状态

    private String StartTime;            //按入职时间范围查询
    private String EndTime;

    private String minAge;               //按年龄范围查询
    private String maxAge;

    public Hr(int id){
        this.id=id;
    }
}
